filechoosernative: forward current_filter to delegate dialog
authorMichael Catanzaro <mcatanzaro@igalia.com>
Thu, 29 Nov 2018 21:34:17 +0000 (15:34 -0600)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 19 Jan 2019 01:01:37 +0000 (20:01 -0500)
commita0f750f7c938198a883e6ec0ee09a5fa81636f7a
tree29c490d63e6bc3ed420dd10134040c84b10fd991
parent95c0f07295fd300ab7f3416a39290ae33585ea6c
filechoosernative: forward current_filter to delegate dialog

gtk_file_chooser_set_filter() doesn't work for GtkFileChooserNative. The
code forwards added and removed filters to the delegate dialog, but
doesn't do anything to set the selected one, so the wrong one gets
chosen. So fix that.

This only fixes the fallback dialog. The portal will be fixed in a
subsequent commit.

Partial fix for #1492
gtk/gtkfilechoosernative.c